#include <bits/stdc++.h>
using namespace std;
int a[1000005];
int main(){
    //freopen("color.in","r",stdin);
    //freopen("color.out","w",stdin);
    int t,n;
    cin>>t;
    while (t--){
        cin>>n;
        for (int i=1;i<=n;i++){
            cin>>a[i];
        }
        cout<<0;
    }

    return 0;
}
